#include "des.h"
#include <iostream>

using namespace std;

int main() {
	char source[100] = { 0 };
	char key[9] = { 0 };
	char encry[100] = { 0 };
	char decry[100] = { 0 };

	strcpy_s(source, "abcdefghijklmno");
	strcpy_s(key, "12345678");

	Encrypt((unsigned char *)source, (unsigned char *)key, (unsigned char *)encry);
	cout << "Encrypt : " << encry << endl;

	Decrypt((unsigned char*)encry, (unsigned char*)key, (unsigned char*)decry);
	cout << "Decrypt : " << decry << endl;

	return 0;
}